<template>
  <div class="home-page">
    <el-container style="height: 100vh;">
      <el-header class="header">
        <h1>科泰旅游AI助手</h1>
        <p>智能旅游服务平台</p>
      </el-header>
      
      <el-main class="main-content">
        <div class="app-grid">
          <el-card 
            class="app-card travel-master-card" 
            shadow="hover"
            @click.native="goToTravelMaster"
          >
            <div class="card-content">
              <div class="card-icon">
                <i class="el-icon-chat-dot-round"></i>
              </div>
              <h3>AI旅游大师</h3>
              <p>智能对话，个性化旅游咨询</p>
              <ul class="feature-list">
                <li>• 支持多轮对话</li>
                <li>• 保留历史会话</li>
                <li>• 实时流式回复</li>
                <li>• 个性化推荐</li>
              </ul>
            </div>
          </el-card>

          <el-card 
            class="app-card travel-agent-card" 
            shadow="hover"
            @click.native="goToTravelAgent"
          >
            <div class="card-content">
              <div class="card-icon">
                <i class="el-icon-s-grid"></i>
              </div>
              <h3>AI旅游智能体</h3>
              <p>步骤化智能规划，专业旅游方案</p>
              <ul class="feature-list">
                <li>• 步骤化展示</li>
                <li>• 智能体规划</li>
                <li>• 专业建议</li>
                <li>• 实时分析</li>
              </ul>
            </div>
          </el-card>
        </div>
      </el-main>
      
      <el-footer class="footer">
        <p>&copy; 2024 科泰旅游AI助手 - 让旅行更智能</p>
      </el-footer>
    </el-container>
  </div>
</template>

<script>
export default {
  name: 'HomePage',
  methods: {
    goToTravelMaster() {
      this.$router.push('/travel-master')
    },
    goToTravelAgent() {
      this.$router.push('/travel-agent')
    }
  }
}
</script>

<style scoped>
.home-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.header {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-align: center;
  padding: 50px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header h1 {
  margin: 0 0 10px 0;
  font-size: 36px;
  font-weight: 600;
}

.header p {
  margin: 0;
  font-size: 18px;
  opacity: 0.9;
}

.main-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 800px;
  width: 100%;
}

.app-card {
  border-radius: 16px;
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.travel-master-card {
  background: linear-gradient(145deg, #ff9a9e 0%, #fecfef 100%);
}

.travel-agent-card {
  background: linear-gradient(145deg, #a8edea 0%, #fed6e3 100%);
}

.card-content {
  text-align: center;
  padding: 30px 20px;
  color: #333;
}

.card-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: #555;
}

.card-content h3 {
  margin: 0 0 15px 0;
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
}

.card-content p {
  margin: 0 0 20px 0;
  font-size: 16px;
  color: #666;
  line-height: 1.5;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.feature-list li {
  padding: 5px 0;
  font-size: 14px;
  color: #555;
}

.footer {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer p {
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .app-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 350px;
  }
  
  .header h1 {
    font-size: 28px;
  }
  
  .main-content {
    padding: 40px 20px;
  }
}
</style>